<nav class="navbar navbar-inverse" role="navigation">
    <div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
        </div>
        <div id="topmenubar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">

                <li class="dropdown">
                    <a href="{{ url('/') }}"><i class="glyphicon glyphicon-home"></i>&nbsp;Trang chủ</a>
                </li>

                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-th-large"></i>&nbsp;Cơ bản <b class="caret"></b></a>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                        <li><a href="{{ url('ql=dscanbo') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp; Cán bộ thanh tra </a></li> 
                        <li><a href="{{ url('ql=dsnam') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp; Năm thanh tra </a></li>
                        <li class="divider"></li>
                        <li><a href="{{ url('ql=dschucvu') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp; Chức vụ </a></li>
                        <li><a href="{{ url('ql=dschucdanh') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp; Chức danh </a></li>
                        <li class="divider"></li>
                        <li><a href="{{ url('ql=dshosott') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp; Hồ sơ thanh tra </a></li>
                    </ul>
                </li>
                
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-list-alt"></i>&nbsp;Thông tin cuộc kiểm tra <b class="caret"></b></a>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                        <li><a href="{{ url('ql=dscoso') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp; Người nộp thuế </a></li>   
                        <li><a href="{{ url('ql=dsdoankt') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp; Đoàn kiểm tra </a></li> 
                        <li><a href="{{ url('ql=dscuockt') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp; Cuộc kiểm tra </a></li>
                    </ul>
                </li>
                
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-cog"></i>&nbsp;Công cụ <b class="caret"></b></a>
                    <ul class="dropdown-menu"><li><a href="{{ url('ql=export') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp;Xuất dữ liệu</a></li>
                        <li><a href="{{ url('ql=doimatkhau') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp;Thay đổi mật khẩu</a></li>
                        <li class="divider"></li>
                        <li><a href="{{ url('ql=tuychon') }}"><span class="glyphicon glyphicon-circle-arrow-right"></span>&nbsp;Tùy chọn</a></li>
                        <li class="divider"></li>
                        <li><a href="{{ url('ql=thongke') }}"><i class="glyphicon glyphicon-circle-arrow-right"></i>&nbsp;Thống kê</a></li>
                    </ul>
                </li>
                
            </ul>
            @if(Auth::check())
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span>&nbsp;Xin chào,&nbsp;{{Auth::user()->username}}<b class="caret"></b></a>
                    <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                        @if(Auth::user()->roles == 1)
                        <li><a href="{{ url('admin') }}"><span class="glyphicon glyphicon-home"></span>&nbsp;Trang quản lý</a>
                        </li>  
                        <li class="divider"></li> 
                        @endif
                        <li><a href="{{ url('logout') }}" onclick="if (confirm('Xác nhận đăng xuất?')) {
                                    return true;
                                } else {
                                    return false;
                                }"><span class="glyphicon glyphicon-off"></span>&nbsp;Thoát</a>
                        </li>                      
                    </ul>
                </li>
            </ul>
            @else
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="{{ url('login') }}"><span class="glyphicon glyphicon-log-in"></span>&nbsp; Đăng nhập </a>
                </li>
            </ul>
            @endif
        </div>
    </div>
</nav>
<style type="text/css">
    .dropdown-menu>li>a:hover {
        color: #29d;
    }
    .dropdown-menu>li>a {
        color: #000;
    }
</style>